home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 1
/
Cream of the Crop 1.iso
/
UTILITY
/
TASEXAM6.ARJ
/
VOLBRK.TAS
< prev
next >
Wrap
Text File
|
1992-03-22
|
3KB
|
86 lines
{
SCRIPT : VOLBRK.TAS
Author : Peter Ross
Date : 12/12/91
This script will SCREEN for volume breakouts of stocks that closed at the
same or higher than yesterday, and are 15% or less from their 52 week high.
In addition, it will ALERT you to those stocks that have had a 30 day price
breakout, and when a new high has been reached.
NOTE: STOCKS IN DATABASE WITH LESS THAN 262 QUOTES WILL NOT BE FLAGGED.
}
#MAX_QUOTES 262
#OUTPUT_FILE 'VOLBRK.LST' N
{ Parameter settings follow.
These parameters can be changed to suit you.
}
PRICE_BREAKOUT_PERIOD = 30; { Price breakout lookback period}
VOL_BREAKOUT_PERIOD = 30; { Volume breakout lookback period}
VOL_PERCENT = 150; { Percentage for VOLUME BREAKOUT}
{ Declare various arrays to hold the results of indicators }
HHV_A : ARRAY; { Place to save HHV}
VOL_A : ARRAY; { Place to save Volume Moving average}
HHV_A = HHV(C,PRICE_BREAKOUT_PERIOD);
VOL_A = MOV(V,VOL_BREAKOUT_PERIOD,'S');
PRICE_BREAKOUT = 0;
VOL_BREAKOUT = 0;
{The next few values are for finding the percentage from the 52 week high.
}
high_value := HHV(h,52*5); { compute high over 52 weeks }
off_high_value := ((high_value - c[0]) / high_value) * 100;
if CLOSE OF TODAY IS GREATER THAN HHV_A OF YESTERDAY THEN
begin
PRICE_BREAKOUT = 1;
end;
if VOLUME OF TODAY IS GREATER THAN
VOL_PERCENT/100 * VOL_A OF YESTERDAY THEN
begin
VOL_BREAKOUT = (VOLUME OF TODAY/VOL_A OF YESTERDAY) * 100;
end;
IF FIRST_TICKER THEN
begin
TOTAL := 0; {Total Companys in your Directors}
VOL_COUNT = 0; {Total Volume Breakouts}
PRICE_COUNT = 0; {Total Price Breakouts}
NH_COUNT = 0; {Total New Highs}
writeln(DATE,'\n');
WRITELN(
' CURR PREV CURR % OFF'
);
WRITELN(
'TICKER NAME CLOSE CLOSE Vol % HIGH'
);
WRITELN(
'------------------------ ------ ------ ------- -----'
);
end;
TOTAL := TOTAL + 1;
IF VOL_BREAKOUT
AND OFF_HIGH_VALUE < 16
AND CLOSE OF TODAY >= CLOSE OF YESTERDAY
THEN BEGIN
VOL_COUNT = VOL_COUNT + 1;
WRITE(ticker,fullname,close, close of yesterday,' ',
((volume/VOL_A[-1]))*100,'%',INT(off_high_value),'%');
IF high_value <= h { today's high is new high }
then
write(' New High ');
writeln(); { end the line with a 'newline'}
IF PRICE_BREAKOUT
THEN BEGIN
WRITELN('\t\t* PRICE BREAKOUT *');
writeln(' ~~~~~~~~~~~~~~');
PRICE_COUNT = PRICE_COUNT + 1;
END;
IF HIGH_VALUE <= H THEN
NH_COUNT = NH_COUNT + 1;
end;
IF LAST_TICKER
THEN BEGIN
WRITELN('\n','Total Companies Processed',' ',INT(TOTAL));
WRITELN(' Volume Breakouts',' ',INT(VOL_COUNT));
WRITELN(' Price Breakouts',' ',INT(PRICE_COUNT));
WRITELN(' New Highs',' ',INT(NH_COUNT));
writeln();
END;